<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/hdocs/jquery/js/jquery-1.8.2.js"></script>
<script type="text/javascript" src="/hdocs/style/js/common.js"></script>
<title>写信</title>
</head>
<body>
      #set ($menuIndex="darren") #parse("/inc/header.html")
      <div class="sqAd">
             <p class="helpCent">站内信</p>
      </div>
      <div class="centent">
            <div class="cenLe">
                  #set ($mailIndex="write") #parse("/message/ahead.html")
                  <p class="h10"></p>
                  <p class="h10"></p>
                  <form id="mainFrom" action="/message/write.jsp" method="post">
                  <div class="chgIncm">
                  	  <span class="fbSpan">联系人：</span>
                  	  <input id="username" type="text" name="username" class="fbInp"/>
                  </div>
                  <p class="h10"></p>
                  <p class="h10"></p>
                  <div class="fbTitc">
                      <span class="fbSpan">内容：</span>
                      <textarea id="message" name="message" class="mxText"></textarea>
                  </div>
                  <p class="h10"></p>
                  <p class="h10"></p>
                  <p class="fbSbtn">
                      <a href="javascript:sendMsg();" class="xmBya"></a>
                      <a href="javascript:reset();" class="xmByb"></a>
                  </p>
                  </form>
            </div>
            <div class="cenRi">
                 <p class="h10"></p>
                 <p class="newFsh"><span class="newfTx">关注用户</span><a href="#" class="centNO">（全部10个）</a></p>
                 <div class="zhuTx">
                      <p class="ztList">
                           <a href="#" class="ztLimg"><img src="/hdocs/style/img/psd.jpg"/></a>
                           <a href="#" class="ztit">明星私生活</a>
                      </p>
                      <p class="ztList">
                           <a href="#" class="ztLimg"><img src="/hdocs/style/img/psd.jpg"/></a>
                           <a href="#" class="ztit">明星私生活</a>
                      </p>
                      <p class="ztList">
                           <a href="#" class="ztLimg"><img src="/hdocs/style/img/psd.jpg"/></a>
                           <a href="#" class="ztit">明星私生活</a>
                      </p>
                      <p class="ztList">
                           <a href="#" class="ztLimg"><img src="/hdocs/style/img/psd.jpg"/></a>
                           <a href="#" class="ztit">明星私生活</a>
                      </p>
                      <p class="ztList">
                           <a href="#" class="ztLimg"><img src="/hdocs/style/img/psd.jpg"/></a>
                           <a href="#" class="ztit">明星私生活</a>
                      </p>
                      <p class="ztList">
                           <a href="#" class="ztLimg"><img src="/hdocs/style/img/psd.jpg"/></a>
                           <a href="#" class="ztit">明星私生活</a>
                      </p>
                      <p class="ztList">
                           <a href="#" class="ztLimg"><img src="/hdocs/style/img/psd.jpg"/></a>
                           <a href="#" class="ztit">明星私生活</a>
                      </p>
                      <p class="ztList">
                           <a href="#" class="ztLimg"><img src="/hdocs/style/img/psd.jpg"/></a>
                           <a href="#" class="ztit">明星私生活</a>
                      </p>
                 </div>
            </div>
      </div>
      #parse("/inc/footer.html")
</body>
</html>
<script type="text/javascript">
function sendMsg() {
	if(!confirm("您确认发布消息吗?")){
		 return;
	}
	if(!validate()){
		return;
	}
	$("#mainFrom").submit();
}

function reset() {
	$("#mainFrom").reset();
}

function validate(){
	var username = $("#username").val();
	if(username==null||username==''){
		alert("联系人！");
		return false;
	}
	var message = $("#message").val();
	if(message==null||message==''){
		alert("内容不能为空！");
		return false;
	}
	return true;
}
</script>
